package com.idbk.chargestation.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by zhx on 2019/1/10.
 */

public class JsonGunInfor implements Parcelable {

    @SerializedName("gunNum")
    public int gunNum;

    @SerializedName("gunStatus")
    public int gunStatus;

    @SerializedName("groundStatus")
    public int groundStatus;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.gunNum);
        dest.writeInt(this.gunStatus);
        dest.writeInt(this.groundStatus);
    }

    public JsonGunInfor() {
    }

    protected JsonGunInfor(Parcel in) {
        this.gunNum = in.readInt();
        this.gunStatus = in.readInt();
        this.groundStatus = in.readInt();
    }

    public static final Parcelable.Creator<JsonGunInfor> CREATOR = new Parcelable.Creator<JsonGunInfor>() {
        @Override
        public JsonGunInfor createFromParcel(Parcel source) {
            return new JsonGunInfor(source);
        }

        @Override
        public JsonGunInfor[] newArray(int size) {
            return new JsonGunInfor[size];
        }
    };
}
